<template>
  <h2>我是Home内容</h2>
</template>

<script>
export default {
  name: "Home",
  beforeDestroy() {
    console.log("Home即将销毁");
  },
  mounted() {
    console.log("Home挂载完毕", this);
    window.homeRoute = this.$route;
    window.homeRouter = this.$router;

    // aboutRoute == homeRoute; //false
    // aboutRouter == homeRouter; //true
  },
};
</script>

<style>
</style>